import { TokenContext, UserContext } from "./context"
import Profile from "./Profile"
import User from "./User"

export default function UseContextCustomPath() {
  return (
    <div>
      <h4>自定义useContext的hooks</h4>
      <UserContext.Provider value={{ name: "username", sex: "man" }}>
        <TokenContext.Provider value={"i am token"}>
          <Profile />
          <User />
        </TokenContext.Provider>
      </UserContext.Provider>
    </div>
  )
}
